package com.hspedu.codeblock;

public class CodeBlockDetail04 {
    public static void main(String[] args) {
        new C02();
    }
}

class A02 {

}

class B02 extends A02 {

}

class C02 {
    private static int n1 = 100;
    private int n2 = 200;

    static {
        System.out.println(n1);
//        System.out.println(n2);
        C02.hello();
        hello();
//        C02.hi;
    }

    {
        System.out.println(n1);
        System.out.println(n2);
        C02.hello();
        hi();
    }

    private static void hello() {
        System.out.println("hello() 静态方法");
    }

    private void hi() {
        System.out.println("hi() 非静态方法");
    }
}